import 'package:flutter/material.dart';




class FloatingActionButtonDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final Widget _floatingAction = FloatingActionButton(
      onPressed: () {},
      child: Icon(Icons.add),
      elevation: 0,
      backgroundColor: Colors.red,
      shape: BeveledRectangleBorder(borderRadius: BorderRadius.circular(15)),
    );
    final Widget _floatingActionExtended = FloatingActionButton.extended(
      onPressed: () {},
      icon: Icon(Icons.add),
      label: Text('add'),
    );
    return Scaffold(
      appBar: AppBar(
        title: Text('floatingaction'),
        elevation: 0,
      ),
      floatingActionButton: _floatingAction,
      floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
      bottomNavigationBar: BottomAppBar(
        child: Container(
          height: 80,
        ),
        shape: CircularNotchedRectangle(),
        color: Colors.amberAccent,
      ),
    );
  }
}